import { setUserInfo, getUserInfo } from '@/utils/storage'

export default {
  namespaced: true,
  state () {
    return {
      user: getUserInfo()
    }
  },
  mutations: {
    setUser (state, user) {
      state.user = user
      setUserInfo(user)
    }
  },
  actions: {},
  getters: {}
}
